ifeq ($(CONFIG_ARCH_X86),y)

romstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
ramstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
ramstage-y += isa-dma.c
ramstage-y += i8254.c
ramstage-y += i8259.c
romstage-$(CONFIG_UDELAY_IO) += udelay_io.c
ramstage-$(CONFIG_UDELAY_IO) += udelay_io.c
ramstage-y += keyboard.c
ramstage-$(CONFIG_SPKMODEM) += spkmodem.c

romstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_early.c

romstage-$(CONFIG_SPKMODEM) += spkmodem.c

subdirs-y += tpm vga

cbfs-files-$(CONFIG_HAVE_CMOS_DEFAULT) += cmos.default
cmos.default-file = $(CONFIG_CMOS_DEFAULT_FILE):nvramtool
cmos.default-type = 0xaa

smm-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c

endif
